package cn.ctodb.mall.goods.service.dto;


import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Lob;
import cn.ctodb.mall.goods.domain.enumeration.IsCheck;

/**
 * A DTO for the Brand entity.
 */
public class BrandDTO implements Serializable {

    private Long id;

    private String brandName;

    private String brandLogo;

    @Lob
    private String brandDesc;

    private String siteUrl;

    private Integer sortOrder;

    private IsCheck isShow;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }
    public String getBrandLogo() {
        return brandLogo;
    }

    public void setBrandLogo(String brandLogo) {
        this.brandLogo = brandLogo;
    }
    public String getBrandDesc() {
        return brandDesc;
    }

    public void setBrandDesc(String brandDesc) {
        this.brandDesc = brandDesc;
    }
    public String getSiteUrl() {
        return siteUrl;
    }

    public void setSiteUrl(String siteUrl) {
        this.siteUrl = siteUrl;
    }
    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }
    public IsCheck getIsShow() {
        return isShow;
    }

    public void setIsShow(IsCheck isShow) {
        this.isShow = isShow;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        BrandDTO brandDTO = (BrandDTO) o;

        if ( ! Objects.equals(id, brandDTO.id)) { return false; }

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "BrandDTO{" +
            "id=" + id +
            ", brandName='" + brandName + "'" +
            ", brandLogo='" + brandLogo + "'" +
            ", brandDesc='" + brandDesc + "'" +
            ", siteUrl='" + siteUrl + "'" +
            ", sortOrder='" + sortOrder + "'" +
            ", isShow='" + isShow + "'" +
            '}';
    }
}
